-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate to edition 2021 #967
base: master
Are you sure you want to change the base?
Migrate to edition 2021 #967
Conversation
Edition 2021 requires rustc 1.56+ so it's possible. 1. `cargo fix --edition` 2. Field "edition" updated in "Cargo.toml".
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #967 +/- ##
==========================================
+ Coverage 94.38% 94.72% +0.33%
==========================================
Files 48 49 +1
Lines 6665 7222 +557
==========================================
+ Hits 6291 6841 +550
- Misses 374 381 +7 ☔ View full report in Codecov by Sentry. |
I added some marginal changes:
@jswrenn |
I noted some months ago that the environment variable CARGO_PKG_RUST_VERSION was publicized in 1.63.0 and that if we do not go back before 1.63 then we can automate the MSRV there. Remain "ci.yml" but I don't see a way to automate it, even with `cargo metadata --no-deps --format-version=1 | jq -r '.packages[0].version'`.
`clippy::uninlined_format_args` and 2 more.
24cbf39
to
c9d0aef
Compare
This commit fixes the following "warning: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition (in the `quickcheck` dependency)". It's quite off-topic but I don't wish to make another PR to change a single character.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me; I'll let you hit 'Merge' when you're ready to do so.
@@ -49,7 +49,9 @@ | |||
//! | |||
//! ## Rust Version | |||
//! | |||
//! This version of itertools requires Rust 1.63.0 or later. | |||
//! This version of itertools requires Rust | |||
#![doc = env!("CARGO_PKG_RUST_VERSION")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huge fan of this!
@Philippe-Cholet is this good to merge? |
I noted 5 months ago that edition 2021 requires rustc 1.56+ so it's now possible.
Is there any reason to not update?